<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>typeof方法</title>
</head>
<body>
    <script>
        let l1=true;
        document.write(typeof(l1)+"<br>");

        let l2=null;
        document.write(typeof(l2)+"<br>");  //object
       
        let l3;
        document.write(typeof(l3)+"<br>"); //代表变量未定义

        let l4=10;
        document.write(typeof(l4)+"<br>"); //整数和浮点数

        let l5="hello";
        document.write(typeof(l5)+"<br>"); //字符串

        let l6=100n;
        document.write(typeof(l6)+"<br>"); //大整数
    </script>
</body>
</html>